home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15700 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  496 b 

  1. From: alhen_ms@msn.com (Alberto Henriquez)
  2. Subject: RE: G++ math question
  3. Date: 6 Apr 96 07:12:52 -0800
  4. References: <00001a81+0000b148@msn.com>
  5. Message-ID: <00001a81+0000b168@msn.com>
  6. Path: news.msn.com!msn.com
  7. Newsgroups: comp.lang.c++
  8. Organization: The Microsoft Network (msn.com)
  9.  
  10. Hi Roger,
  11.  
  12. You'll need to link the math libs with your app.
  13.  
  14. example (math library is called libm.a) g++ -omyapp myapp.cpp -lm
  15.  
  16. The first switch is character "o" the second switch is lowercase "L".
  17.  
  18. GoodLuck,
  19. Al
  20.